package cn.e4j.modular.erp.impl;

import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.erp.Erp;
import cn.e4j.modular.erp.datas.ERPData;
import cn.e4j.modular.erp.entity.XmdaT;
import cn.e4j.modular.erp.mapper.T100Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * T100逻辑处理
 * Created by ganjia on 2019-05-05.
 */
@Service
public class T100WebServiceImpl extends ServiceImpl<T100Mapper, XmdaT> implements Erp {

    @Override
    @Transactional(readOnly = true)
    public List<ERPData> getListERPData(Page<Object> page, Dto dto) {
        return this.baseMapper.getListERPData(page,dto);
    }

    @Override
    @Transactional(readOnly = true)
    public List<ERPData> getListERPData(Dto dto) {
        return this.baseMapper.getListERPData(dto);
    }

    @Override
    @Transactional(readOnly = true)
    public List<Dto> getSiteList(Page<Object> page, Dto dto) {
        return this.baseMapper.getSiteList(page,dto);
    }

    @Override
    @Transactional(readOnly = true)
    public List<Dto> getCustomerList(Page<Object> page, Dto dto) {
        return this.baseMapper.getCustomerList(page,dto);
    }

}
